package com.yk.main;

import com.yk.business.CreateInstance;
import com.yk.impl.ITest;

/**
 * Created by dingkl on 2017/7/28.
 */
public class ClientSmple {
    public static void main(String[] args) throws Exception{
        CreateInstance createInstance = new CreateInstance("127.0.0.1",1999);
        long startTime = System.currentTimeMillis();
        for (int i=0;i<10000;i++){

            ITest test = createInstance.getInstance(ITest.class);
            System.out.println("result:"+test.sum(i,i+1));

        }
        System.out.println("time:"+(System.currentTimeMillis()-startTime)/1000);
    }
}
